package com.hsj.service.imp;

import com.hsj.mq.Order2MQService;
import com.hsj.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private Order2MQService order2MQService;
    @Override
    public void order(String id) {
        System.out.println("订单处理开始");
        System.out.println("处理完订单 给用户发短信 ");
        order2MQService.sendMessage2Mq(id);
    }
}
